<template>
  <div>
    <hr />
    御剑乘风来,除魔天地间!===father====={{ fatherMsg }}
    <SonCom></SonCom>
    <button @click="fatherChange">更改Son的值</button>
  </div>
</template>
<script>
import SonCom from "./SonCom.vue";
export default {
  components: {
    SonCom,
  },
  data() {
    return {
      fatherMsg: "这里是father",
    };
  },
  created() {},
  computed: {},
  methods: {
    fatherChange() {
      this.$children[0].sonMsg = "Father把值改啦";
    },
  },
};
</script>
<style lang='less'  scoped>
</style>
